package com.teng.mrliuproject.net

import com.teng.mrliuproject.base.Global
import com.teng.mrliuproject.entity.*
import com.teng.mylibrary.entity.BaseResponse
import io.reactivex.Observable
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.http.*

/**
 * Description:
 * Author:       liuteng
 * CreateDate:   2022/8/17 10:55
 * UpdateRemark: 更新说明
 */
interface Api {

    @GET("/api/Base/GetUser")
    fun login(
        @Query("userName") userName: String,
        @Query("passWord") passWord: String
    ): Observable<BaseResponse<LoginBean>>

    @POST("/Android/Base/getOrgList")
    fun getOrgList(@Body body: RequestBody): Observable<BaseResponse<List<String>>>
}